//引入自定义模块
// const {average,max}=require('../arr.utils')

import {average,max} from './arr-utils.js'
import utils from './arr-utils.js'//默认
import * as utils22 from './arr-utils.js'//所有
console.log(utils,utils22)

console.log(average([2,4,6]))
console.log(max([2,4,6]))


//引入第三方模块
// let uniq=require('uniq')
import uniq from '../lib/uniq.js'
console.log(uniq([8,9,1,3,3,1,9]))


document.getElementById('btn').onclick=()=>{
    alert(Math.floor(Math.random()*100))
}